package com.baiyi.cloud.platform.server.oauth2.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/** 
 * 
 * @ClassName: PasswordConfig
 * @Description: 装配密码匹配器
 * @author huwenfeng
 * @date 2019年1月11日
 */
@Configuration
public class PasswordConfig {
	@Bean
	public PasswordEncoder passwordEncoder()	{
		return new BCryptPasswordEncoder();
	}
}
